import QtQuick
import QtQuick.Controls

ApplicationWindow {
    id: myWindow
    width: 640
    height: 480
    visible: true

    Text {
        text: "Content"
        anchors.centerIn: parent
    }

    Drawer {
        id: controlCenter
        width: myWindow.width
        height: myWindow.height

        //顶部向下划
        edge: Qt.TopEdge

        // 透明背景
        background: Rectangle { color: "transparent" }

        Label {
            text: "Drawer Content"
            anchors.centerIn: parent
        }
    }
}
